package com.example.controller;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.example.common.result.Result;
import com.example.entity.mysql.ApprovalDetails;
import com.example.entity.mysql.ApprovalProcess;
import com.example.service.ApprovalDetailsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 流程表单 前端控制器
 * </p>
 *
 * @author LiangPandeng
 * @since 2024-02-22
 */
//@RestController
////@RequestMapping("/approval-details")
//@Api(tags = "审批流程表单接口")
public class ApprovalDetailsController {

//    @Resource
//    private ApprovalDetailsService approvalDetailsService;
//
//    @GetMapping("/all")
//    @DS("mysql")
//    @ApiOperation("查看全部审批表单信息")
//    public Result all(){
//        List<ApprovalDetails> list = approvalDetailsService.list();
//        return Result.success(list);
//    }
//
//    @GetMapping("/add")
//    @DS("mysql")
//    @ApiOperation("查看全部审批表单信息")
//    public Result all(@RequestBody ApprovalDetails approvalDetails){
//        approvalDetails.setUuid(null);
//        boolean save = approvalDetailsService.save(approvalDetails);
//        if (save == true) return Result.success();
//        else return Result.error("插入失败!");
//    }

}
